package org.extreme.util;

import java.util.Locale;
import java.util.ResourceBundle;


public abstract class Inter {
	public static final String I18N_RESOURCE_PATH = "org.extreme.util.i18n.i18n";
	
	private static Locale locale = Locale.CHINA;
	private static ResourceBundle i18n;
	
	static {
		i18n = ResourceBundle.getBundle(I18N_RESOURCE_PATH, locale);
	}
	
	/**
     * Gets local text.
     * @param text the old text.
     * @return the local text.
     */
    public static String getLocText(String text) {
    	return i18n.getString(text);
    }
}
